 {
        
     cc.Class({
            extends: cc.Component,
            properties: {
                nodes: {
                    default: [],
                    type: [cc.Node]
                },
                _gangData: null
            },
            start: function () {
            },
            bindData: function (e, t, n) {
                if (this._type = t, n && (this._tile = n), "gang" == t) {
                    this._gangData = e;
                    for (var o = 0; o < 4; o++) {
                        (s = this.nodes[o]).active = !0;
                        s.getChildByName("spBg");
                        var i = s.getChildByName("spTile"), a = "mj_az_02_" + e.pattern[o],
                            r = i.getComponent("cc.Sprite");
                        Global.spriteAtlas.setSpriteFrame(r, "Texture/mj_az_tiles", a);
                    }
                } else if ("chi" == t) {
                    this._chiData = e;
                    for (o = 0; o < e.length; o++) {
                        var s;
                        (s = this.nodes[o]).active = !0;
                        s.getChildByName("spBg"), i = s.getChildByName("spTile"), a = "mj_az_02_" + e[o],
                            r = i.getComponent("cc.Sprite");
                        Global.spriteAtlas.setSpriteFrame(r, "Texture/mj_az_tiles", a);
                    }
                }
            },
            onClickGang: function () {
                var e = null;
                switch (this._type) {
                    case "gang":
                        e = Global.eventName.GAME_GANG;
                        break;

                    case "chi":
                        e = Global.eventName.GAME_CHI;
                }
                if (e) {
                    Global.notificationCenter.emit(e);
                    var t = Global.tableModel.getRoomId(), n = Global.tableModel.getTableId(),
                        o = Global.tableModel.getSeatId();
                    if (0 == t || 0 == n) return void cc.error("WaittingController onClickBack", "roomId = " + t + " tableId = " + n + " seatId = " + o);
                    "gang" == this._type ? Global.msgHandler.requestGang(t, n, o, this._gangData) : "chi" == this._type && Global.msgHandler.requestChi(t, n, o, this._chiData, this._tile);
                }
            }
        })
    }